package edu.mama.college.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 课程章节
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Lesson implements Serializable {

    private int id;
    //章节名称
    private String name;
    //章节类型：video表示录播课，live表示直播课，operate表示实操课
    private String type;
    //视频时长（单位：秒）
    private int duration;
    //视频资源URL
    private String resource;
    //所属课程ID
    private int courseId;
    // 是否删除
    private boolean deleted;
    //发布时间
    private Date createdTime;
}
